<script setup lang="ts">
import { inject } from 'vue';
import ChildComp from './ChildComp.vue';
const count = inject('count')
</script>

<template>
  <div class="parent-page" style="padding: 50px">
    parent 组件 {{ count }}
    <hr />
    <ChildComp></ChildComp>
  </div>
</template>
